< previous page page_4 next page >

Page 4
Sound like a lot for one day? Not really. You will be amazed at how quickly you can put together database programs. Much of the drudgery commonly associated with writing data entry programs (screen layout, cursor control, input editing, and so on) is automatically handled using just a few of Visual Basic's input controls. In addition, with Visual Basic's data controls it's easy to add the capability to read and write database tables, too.
So let's get started!
Starting Your New Visual Basic Project
If you already have Visual Basic up and running on your PC, select File | New Project to create a new project. If you haven't started Visual Basic yet, start it now. Select Standard EXE and click OK in the dialog that appears. Now you're ready to create the data entry screen.
Adding the Database Control
The first thing you need to do for the database program is open up the database and select the data table you want to access. To do this, double-click the data control in the Visual Basic toolbox (see Figure 1.1). This places a data control in the center of the form. When this is done, the form is ready to open a data table. At this point, your screen should look something like the one in Figure 1.1.
0004-01.jpg
Figure 1.1.
The data control as it appears
when first added to your form.
Tip.gif
Are you not sure which of those icons in the toolbox is the data control? You can press F1 while the toolbox window is highlighted to display a help screen describing each of the Visual Basic tools. This screen shows the tool icon and points to additional help, listing the properties, events, and methods available for each of the controls. You

 
< previous page page_4 next page >

If you like this book, buy it!